<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="zh">
<head>
    <title>教师主页|河海大学实践课程考勤系统</title>
    <jsp:include page="head.jsp"/>
</head>
<body>
<div class="container">
    <jsp:include page="header.jsp"/>
    <div class="row">
        <div class="col-sm-offset-1 col-sm-2">
            <ul class="nav nav-pills nav-stacked">
                <li class="active"><a href="${pageContext.request.contextPath}/teacher/index">主页</a></li>
                <li><a href="${pageContext.request.contextPath}/teacher/info">个人信息</a></li>
                <li><a href="${pageContext.request.contextPath}/teacher/addcourse">添加课程</a></li>
                <li><a href="${pageContext.request.contextPath}/teacher/logout">退出登录</a></li>
            </ul>
        </div>
        <div class="col-sm-offset-1 col-sm-6">
            <h3>课程列表</h3>
            <table class="table">
                <thead>
                <tr>
                    <th>课程名称</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${requestScope.courses}" var="course">
                    <tr>
                        <td>
                            <a href="${pageContext.request.contextPath}/teacher/course?cid=${course.cid}">${course.cname}</a>
                        </td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </div>
    </div>
    <jsp:include page="footer.jsp"/>
</div>
</body>
</html>
